Skip to content

docs: voice audit — rewrite AI-written documentation in John's voice#92

Merged
ehrlinger merged 22 commits into
mainfrom
docs/voice-audit-design
May 26, 2026
Merged

docs: voice audit — rewrite AI-written documentation in John's voice#92
ehrlinger merged 22 commits into
mainfrom
docs/voice-audit-design

Conversation

@ehrlinger

Copy link
Copy Markdown
Owner

Summary

Rewrites the AI-written documentation across ggRandomForests so the package reads in one consistent human voice. Voice-only: no factual or content changes. Function signatures, argument names, return-value facts, example code, version numbers, and issue references are unchanged.

Covers roxygen (varPro family, gg_brier, ROC/randomForest surface, gg_partial family, S3 methods), the three vignettes, README, and the v2.8.0 NEWS entries. Mixed files had only their 2026-era AI prose rewritten; original JSS-era prose was left untouched.

Adds dev/voice-fingerprint.md (the two-register voice reference, synced from the author's vault) and dev/voice-audit-classification.md (records what was and was not in scope). Design spec and implementation plan are in dev/plans/.

Test plan

  • devtools::check(args = "--as-cran") — 0 errors, 0 warnings, 0 notes
  • All 3 vignettes render
  • devtools::test() — 0 failures
  • Em-dash density: added <= removed
  • Diff is documentation-only (roxygen/man/vignettes/README/NEWS/dev), no code or test changes

ehrlinger and others added 19 commits May 22, 2026 10:04
Plan to audit all ggRandomForests docs (roxygen, vignettes, README, NEWS)
and rewrite AI-written portions in John's voice. Approach: build a two-
register voice fingerprint from JSS-era prose + supplied writing samples,
classify every doc surface, rewrite only the AI/mixed surfaces. Voice-only:
no factual/content changes. Ships as one PR before the v2.8.0 RC.
Per review: add 'don't overstate' rule, log ellipses as informal-register
habit, and distinguish mechanical parallelism (an AI tell) from pedagogical
repetition (kept — it is the voice).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
print_helpers.R, ribbon_style.R, utils.R carry zero roxygen lines and
produce no man pages; they are out of scope for a documentation voice
audit. Earlier pass over-classified them as AI/rewrite.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented May 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.31%. Comparing base (49e4c2f) to head (01d6d16).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #92   +/-   ##
=======================================
  Coverage   87.31%   87.31%           
=======================================
  Files          38       38           
  Lines        3098     3098           
=======================================
  Hits         2705     2705           
  Misses        393      393           
Files with missing lines Coverage Δ
R/autoplot_methods.R 85.71% <ø> (ø)
R/gg_brier.R 89.33% <ø> (ø)
R/gg_partial_rfsrc.R 89.68% <ø> (ø)
R/gg_partial_varpro.R 95.23% <ø> (ø)
R/gg_partialpro.R 100.00% <ø> (ø)
R/gg_roc.R 87.71% <ø> (ø)
R/gg_udependent.R 88.79% <ø> (ø)
R/gg_variable.R 85.41% <ø> (ø)
R/gg_varpro.R 100.00% <ø> (ø)
R/plot.gg_brier.R 100.00% <ø> (ø)
... and 9 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes the documentation voice across ggRandomForests so that newer AI-era prose reads in a consistent “John” narrative/terse register, while keeping code, signatures, examples, and references unchanged.

Changes:

  • Rewrites vignette / README / NEWS prose to a consistent narrative + terse voice.
  • Rewrites roxygen blocks for newer/mixed surfaces (varPro family, ROC/variable/partial/brier, print/summary/autoplot), regenerating matching .Rd pages.
  • Adds documentation-process artifacts under dev/ (voice fingerprint, classification table, design + implementation plan).

Reviewed changes

Copilot reviewed 41 out of 46 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
vignettes/ggRandomForests.qmd Rewrite intro/explanatory prose and “Next steps” bullets in vignette voice.
vignettes/ggRandomForests-survival.qmd Rewrite Brier/CRPS section prose and conclusion summary voice.
vignettes/ggRandomForests-regression.qmd Rewrite select explanatory + conclusion prose voice.
README.md Rewrite S3-method and “Why ggRandomForests?” prose for consistent voice.
NEWS.md Rewrite v2.8.0 development bullets into the terse register.
R/varpro_feature_names.R Roxygen wording rewrite (voice-only).
R/surv_partial.rfsrc.R Roxygen wording rewrite (voice-only).
R/summary_methods.R Roxygen wording rewrite (voice-only).
R/print_methods.R Roxygen wording rewrite (voice-only).
R/autoplot_methods.R Roxygen wording rewrite (voice-only).
R/plot.gg_varpro.R Roxygen wording rewrite (voice-only).
R/plot.gg_variable.R Roxygen wording rewrite (voice-only).
R/plot.gg_udependent.R Roxygen wording rewrite (voice-only).
R/plot.gg_roc.R Roxygen wording rewrite (voice-only).
R/plot.gg_partial_varpro.R Roxygen wording rewrite (voice-only).
R/plot.gg_brier.R Roxygen wording rewrite (voice-only).
R/gg_varpro.R Roxygen wording rewrite (voice-only).
R/gg_variable.R Roxygen wording rewrite (voice-only).
R/gg_udependent.R Roxygen wording rewrite (voice-only).
R/gg_roc.R Roxygen wording rewrite (voice-only).
R/gg_partialpro.R Deprecation roxygen wording rewrite (voice-only).
R/gg_partial_varpro.R Roxygen wording rewrite (voice-only).
R/gg_partial_rfsrc.R Roxygen wording rewrite (voice-only).
R/gg_brier.R Roxygen wording rewrite (voice-only).
man/varpro_feature_names.Rd Regenerated Rd to match roxygen voice edits.
man/surv_partial.rfsrc.Rd Regenerated Rd to match roxygen voice edits.
man/summary.gg.Rd Regenerated Rd to match roxygen voice edits.
man/print.gg.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_varpro.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_variable.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_udependent.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_roc.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_partial_varpro.Rd Regenerated Rd to match roxygen voice edits.
man/plot.gg_brier.Rd Regenerated Rd to match roxygen voice edits.
man/gg_varpro.Rd Regenerated Rd to match roxygen voice edits.
man/gg_variable.Rd Regenerated Rd to match roxygen voice edits.
man/gg_udependent.Rd Regenerated Rd to match roxygen voice edits.
man/gg_roc.rfsrc.Rd Regenerated Rd to match roxygen voice edits.
man/gg_partial_varpro.Rd Regenerated Rd to match roxygen voice edits.
man/gg_partial_rfsrc.Rd Regenerated Rd to match roxygen voice edits.
man/gg_brier.Rd Regenerated Rd to match roxygen voice edits.
man/autoplot.gg.Rd Regenerated Rd to match roxygen voice edits.
dev/voice-fingerprint.md Adds the two-register voice reference used as the rewrite yardstick.
dev/voice-audit-classification.md Adds an auditable classification table for rewrite scope.
dev/plans/2026-05-22-doc-voice-audit-plan.md Adds the implementation plan for the audit/rewrite work.
dev/plans/2026-05-22-doc-voice-audit-design.md Adds the design spec and guardrails for voice-only changes.
Files not reviewed (5)
  • man/autoplot.gg.Rd: Language not supported
  • man/gg_brier.Rd: Language not supported
  • man/gg_partial_rfsrc.Rd: Language not supported
  • man/gg_partial_varpro.Rd: Language not supported
  • man/gg_roc.rfsrc.Rd: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vignettes/ggRandomForests.qmd Outdated
Comment thread README.md Outdated
Comment thread R/plot.gg_brier.R Outdated
Comment thread vignettes/ggRandomForests-survival.qmd Outdated
Comment thread vignettes/ggRandomForests-regression.qmd Outdated
Comment thread README.md Outdated
@ehrlinger ehrlinger merged commit 4852ab8 into main May 26, 2026
15 checks passed
@ehrlinger ehrlinger deleted the docs/voice-audit-design branch May 28, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants